﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XT.ToDo
{
    public class ToDo_BL
    {
        public List<ToDoItem> Items = null;
        public ToDo_BL()
        {
            Items = new List<ToDoItem>(); ;
            ToDoItem item1 = new ToDoItem();
            item1.Title = "Test Title";
            item1.Details = "Test details";
            item1.Priority = priority.Medium;
            Items.Add(item1);
            Items.Add(item1);
            Items.Add(item1);
            Items.Add(item1);
            Items.Add(item1);
            Items.Add(item1);
            Items.Add(item1);
            Items.Add(item1);
        }
    }

    public class ToDoItem
    {
        public string Title{get; set;}
        public string Details{get; set;}
        public priority Priority { get; set; }
    }

    public enum priority
    {
        High = 1,
        Medium = 2,
        Low = 3
    }
}
